From: Florian Müllner Date: Thu, 7 Nov 2024 15:23:48 +0000 (+0100) Subject: dialog: Wrap titles X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~185^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e147afaec19e34c4fe00639246389fef17563607;p=gnome-shell.git dialog: Wrap titles Dialogs should not use titles that are too long to fit, but if they do, wrapping is more appropriate than ellipsizing. Part-of: (cherry picked from commit fbaead359a86186b30ec78c8fab1ff741ecb6b2b) --- diff --git a/js/ui/dialog.js b/js/ui/dialog.js index 8db4eb5ce..5fed54e21 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -175,6 +175,9 @@ export const MessageDialogContent = GObject.registerClass({ this._title = new St.Label({style_class: 'message-dialog-title'}); this._description = new St.Label({style_class: 'message-dialog-description'}); + this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + this._title.clutter_text.line_wrap = true; + this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this._description.clutter_text.line_wrap = true;